import {defineConfig} from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import AutoImport from 'unplugin-auto-import/vite'
import {resolve} from "path";
// https://vitejs.dev/config/
export default defineConfig({
    build: {
        sourcemap: true,
    },
    resolve: {
        alias: {
            '@': resolve(__dirname, './src'),
        },
        extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
    },
    plugins: [
        uni(),
        AutoImport({
            imports: [
                "vue", "pinia"
            ]
        })
    ],
});
